﻿using Acme.SmartWMS.RBAC.RolePermissions.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Acme.SmartWMS.RBAC.RolePermissions
{
    public interface IRolePermissionsAppService : IApplicationService
    {
        /// <summary>
        /// 查询树形角色权限信息
        /// </summary>
        /// <param name="id">角色编号</param>
        /// <returns>返回结果</returns>
        Task<List<RolePermissionsTreeDto>> GetTree(int id);
        /// <summary>
        /// 添加角色权限数据
        /// </summary>
        /// <param name="rolePermissionsTreeDtos">树形角色权限数据</param>
        /// <param name="id">角色编号</param>
        /// <returns>返回结果</returns>
        Task<int> Insert(List<RolePermissionsTreeDto> rolePermissionsTreeDtos, int id);
    }
}
